package com.yan.file;

import java.io.File;
import java.io.FileFilter;

public class FileDemo4 {
    public static void main(String[] args) {
        File file = new File("day05_code/src/com/yan/file");
        File[] files = file.listFiles(pathname ->  pathname.getName().endsWith(".java") && pathname.isFile());

        for (File ziFile : files) {
            System.out.println(ziFile.getPath());
        }
    }
}
